<?

class Smutty_Database_MySQL_Result extends Smutty_Database_Result {

	var $res = null;

	function Smutty_Database_MySQL_Result( $res ) {
		$this->res = $res;
	}

	function fetch() {
		return mysql_fetch_array( $this->res );
	}

	function fetchAssoc() {
		return mysql_fetch_assoc( $this->res );
	}

	function fetchObject() {
		return mysql_fetch_object( $this->res );
	}

	function toArray() {
		$array = array();
		while ( $row = $this->fetch() )
			$array[] = $row;
		return $array;
	}

}

?>